home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1987-05-08 | 1.0 KB | 22 lines |
- 10 CLS
- 20 KEY OFF
- 30 COLOR 7,0
- 40 WIDTH 80
- 50 DEF SEG = 0: POKE 1050,PEEK(1052)
- 60 LOCATE 1,20:PRINT "B I N A R Y T O D E C I M A L T U T O R I A L"
- 70 LOCATE 5,2:PRINT " This section will guide you through the BINARY to DECIMAL section of M A T H P A K."
- 80 LOCATE 8,2:PRINT " This section of M A T H P A K, will allow you to enter a 16-bit BINARY value,"
- 90 LOCATE 9,2:PRINT "and give you a DECIMAL equivalent."
- 100 LOCATE 10,2:PRINT " EXAMPLE:"
- 110 LOCATE 11,2:PRINT " To convert 0010100100100010 into a DECIMAL value, enter the binary value as is,"
- 120 LOCATE 13,2:PRINT "and press <RETURN>. The bit index guide, is simply to tell you when and where"
- 130 LOCATE 14,2:PRINT "you are to entering all 16 bits."
- 140 LOCATE 15,2:PRINT " Please enter a series of 0's and/or 1's ONLY!"
- 150 LOCATE 17,2:PRINT " To exit to main menu, enter a 'x' for BINARY value and press <RETURN>."
- 160 LOCATE 18,2:PRINT " If only a 8-bit BINARY value is being converted, then enter eight 0's "
- 170 LOCATE 19,2:PRINT "and then the remaining 8-bits."
- 180 LOCATE 22,2:PRINT "Press the S P A C E B A R to return to disk tutorial...
- 190 S$ =INKEY$:IF S$ =" " THEN CLS:CLEAR:CHAIN"a"
- 200 GOTO 190
- 210 END
-